﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Stack>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	创建堆场
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>创建堆场</span></a></li>
	        </ul>
	    </div>
	</div>

    <% using (Html.BeginForm("Create", "Stack", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.Id) %>
    
    
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px;">
        <tr>
            <th colspan="2">创建堆场</th>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">所属公司：</td>
            <td>
                <%= Html.DropDownList("FactoryId", ViewData["factories"] as List<SelectListItem>, "请选择公司")%>
                <%= Html.ValidationMessageFor(model => model.FactoryId) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">堆场名称：</td>
            <td>
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">堆场位置：</td>
            <td>
                <%= Html.TextBoxFor(model => model.Address) %>
                <%= Html.ValidationMessageFor(model => model.Address) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">地理坐标：</td>
            <td>
                <%= Html.TextBoxFor(model => model.GeoPosition) %>
                <%= Html.ValidationMessageFor(model => model.GeoPosition) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">堆场描述：</td>
            <td>
                <%= Html.TextAreaFor(model => model.Description, new { cols = "68" , rows = "8" })%>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">堆场图片：</td>
            <td>
                    <p>
                        <label>堆场总图：</label>
                        <input type="file" id="SummaryPic" name="fileSummaryPic" />
                    </p>
                    <p style="margin-top:5px;">
                        <label>进浆点图：</label>
                        <input type="file" id="FlowInPic" name="fileFlowInPic" />
                    </p>
                    <p style="margin-top:5px;">
                        <label>　图片一：</label>
                        <input type="file" id="Pic1" name="filePic1" />
                    </p>
                    <p style="margin-top:5px;">
                        <label>　图片二：</label>
                        <input type="file" id="Pic2" name="filePic2" />
                    </p>
                    <p style="margin-top:5px;">
                        <label>　图片三：</label>
                        <input type="file" id="Pic3" name="filePic3" />
                    </p>
            </td>
        </tr>

    </table>

    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px; margin-top:8px;">
        <tr>
            <th colspan="2">运营信息</th>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">使用年限：</td>
            <td>
                <%= Html.TextBoxFor(model => model.LifeTime, new { style = "width:40px; text-align:center;" })%>年
                <%= Html.ValidationMessageFor(model => model.LifeTime) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">开始运营时间：</td>
            <td>
                <%= Html.TextBoxFor(model => model.BeginYear, new { style = "width:40px; text-align:center;" })%>年 <%= Html.TextBoxFor(model => model.BeginMonth, new { style = "width:40px; text-align:center;" })%>月
                <%= Html.ValidationMessageFor(model => model.BeginYear) %>
                <%= Html.ValidationMessageFor(model => model.BeginMonth) %>
            </td>
        </tr>

    </table>
    
    <div class="submit_btn_area" style="margin-left:142px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>
</asp:Content>